home *** CD-ROM | disk | FTP | other *** search
- global gScreenStatus, gReturnHelp, gTransitionType, gInterfaceLanguage, gLstAnimHS, gPictureOnly, gReturnDialog, gFreeSprite, glstNavigInfo, glstCurrentArrow
-
- on showAide HelpGrid
- set gReturnHelp to gScreenStatus
- if (gScreenStatus = #ILLUSTRATION) or (gScreenStatus = #ZOOM) or (gScreenStatus = #REGION) then
- FlushAllAnimationsData()
- ResetActiveLabels()
- ResetScreenLists()
- end if
- set gScreenStatus to #HELP
- GoHelpGrid()
- ClearCursor()
- end
-
- on GoHelpGrid
- repeat with n = 3 to 6
- set the cursor of sprite n to 4
- end repeat
- watchCursor()
- addRAMobjects(#CASTRANGE, [11986, 11994])
- GrabStage()
- ResetFrameChannels()
- gotoframe(37, 0)
- PlaceInScore([320, 463], 11915, 3)
- set the locH of sprite 1 to 320
- set the locV of sprite 1 to 240
- set TempNum to 11982 + gInterfaceLanguage
- addRAMobjects(#CastList, [TempNum])
- set the castNum of sprite 1 to TempNum
- puppetTransition(gTransitionType)
- updateStage()
- puppetTransition(0)
- ClearCursor()
- end
-
- on GoHelpScreen ScreenCastNum
- watchCursor()
- GrabStage()
- ResetFrameChannels()
- gotoframe(35, 0)
- PlaceInScore([272, 463], 11915, 3)
- PlaceInScore([304, 463], 11917, 4)
- PlaceInScore([336, 463], 11919, 5)
- PlaceInScore([368, 463], 11921, 6)
- set the locH of sprite 1 to 320
- set the locV of sprite 1 to 240
- set the castNum of sprite 1 to ScreenCastNum
- addRAMobjects(#CastList, [ScreenCastNum])
- puppetTransition(gTransitionType)
- updateStage()
- puppetTransition(0)
- ClearCursor()
- end
-
- on PushButton2 SpriteNo, ButtonRect, castNumHighlight
- set Selected to 1
- set the castNum of sprite SpriteNo to castNumHighlight
- set the locH of sprite SpriteNo to getAt(ButtonRect, 1) - 3
- set the locV of sprite SpriteNo to getAt(ButtonRect, 2) - 1
- updateStage()
- repeat while the mouseDown
- if inside(point(the mouseH, the mouseV), ButtonRect) then
- if not Selected then
- set the visible of sprite SpriteNo to 1
- updateStage()
- set Selected to 1
- end if
- next repeat
- end if
- if Selected then
- set the visible of sprite SpriteNo to 0
- updateStage()
- set Selected to 0
- end if
- end repeat
- set the castNum of sprite SpriteNo to 10001
- set the visible of sprite SpriteNo to 1
- updateStage()
- return Selected
- end
-
- on nextAide
- repeat with n = 3 to 6
- set the cursor of sprite n to 4
- end repeat
- watchCursor()
- puppetTransition(gTransitionType)
- set CastNumber to the castNum of sprite 1
- if ((CastNumber - 11933) mod 18) = 0 then
- set TempNum to CastNumber - 10
- addRAMobjects(#CastList, [TempNum])
- set the castNum of sprite 1 to TempNum
- else
- set TempNum to CastNumber + 1
- addRAMobjects(#CastList, [TempNum])
- set the castNum of sprite 1 to TempNum
- end if
- updateStage()
- puppetTransition(0)
- repeat with n = 3 to 6
- SpriteHandCursor(n)
- end repeat
- ClearCursor()
- end
-
- on PrevAide
- repeat with n = 3 to 6
- set the cursor of sprite n to 4
- end repeat
- watchCursor()
- puppetTransition(gTransitionType)
- set CastNumber to the castNum of sprite 1
- if ((CastNumber - 11922) mod 18) = 1 then
- set TempNum to CastNumber + 10
- addRAMobjects(#CastList, [TempNum])
- set the castNum of sprite 1 to TempNum
- else
- set TempNum to CastNumber - 1
- addRAMobjects(#CastList, [TempNum])
- set the castNum of sprite 1 to TempNum
- end if
- updateStage()
- puppetTransition(0)
- repeat with n = 3 to 6
- SpriteHandCursor(n)
- end repeat
- ClearCursor()
- end
-
- on retourAide
- repeat with n = 3 to 6
- set the cursor of sprite n to 4
- end repeat
- watchCursor()
- GrabStage(0)
- if (gReturnHelp = #Index) or (gReturnHelp = #Language) or (gReturnHelp = #PREFERENCES) then
- if gReturnDialog = #CONTENU then
- ShowContenu(1)
- else
- if gReturnDialog = #ILLUSTRATION then
- set gFreeSprite to 48
- gotoframe(1)
- puppetTransition(gTransitionType)
- PrepareScreen(glstNavigInfo, 1)
- else
- set gFreeSprite to 48
- gotoframe(1)
- GetNavigInfo(glstCurrentArrow)
- end if
- end if
- if gReturnHelp = #Index then
- ShowIndex()
- else
- if gReturnHelp = #Language then
- ShowLanguagePalette(1)
- end if
- end if
- else
- ReCreateScreen(gReturnHelp)
- end if
- ClearCursor()
- end
-